//
//@File    :	5.15_dowhile.cpp
//@Time    :	2021/08/06 18:04:21
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	exit-condition loop
//

#include <iostream>

using namespace std;
int main()
{
    int n;

    cout<<"Enter numbers in the range 1-10 to find ";
    cout<<"my favorite number\n";
    do
    {
        cin>>n;
    } while (n!=7);
    cout<<"Tes,7 is my favorite,\n";
    system("pause");
    return 0;
}